import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "/member/channel/getList",
    method: "GET",
    params,
  });
}
export function getTempList(params) {
  return request({
    url: "/member/channel/getTempList",
    method: "GET",
    params,
  });
}

export function change(data) {
  return request({
    url: "/member/channel/change",
    method: "POST",
    data,
  });
}
export function add(data) {
  return request({
    url: "/member/channel/add",
    method: "POST",
    data,
  });
}
export function del(id) {
  return request({
    url: "/member/channel/del",
    method: "POST",
    data: { id },
  });
}

export function getAllChannel() {
  return request({
    url: "/member/channel/getAll",
    method: "GET",
  });
}
